<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse; font-size: 14px; width: 80%; margin: auto;
        }
        table, th, td{
            border: 1px solid darkslategray; padding: 10px;
        }
    </style>
</head>
<body>
<div style="text-align: center">
    <span style="font-size: 30px; color: darkslategray; margin-left: 90px">成绩表</span>
    <hr/>
    <a href="" th:href="@{/list}">主页面</a>
    <table>
        <tr>
            <th>学号</th>
            <th>名字</th>
            <th>班级</th>
            <th>课程</th>
            <th>分数</th>
        </tr>
        <tr th:each="cj:${cjs}">
            <td th:text="${cj.xh}"></td>
            <td th:text="${cj.name}"></td>
            <td th:text="${cj.bj}"></td>
            <td th:text="${cj.km}"></td>
            <td th:text="${cj.score}"></td>
        </tr>
    </table>
</div>
</body>
</html>